﻿#include "rfmmain.h"

#include <QApplication>
#include <QDebug>

void test()
{
    QByteArray ba("64000000");
    bool ok = true;
    int a1 = ba.toInt(&ok, 10);
    QByteArray ba1 = ba.toHex();
   int m =  ba.toHex().toInt(&ok, 16);
   qDebug() << __LINE__ << __FUNCTION__ << "value= "  << m;

   QByteArray ba2;
   // ba2.resize(4);
   ba2[0] = 0x00;
   ba2[1] = 0x00;
   ba2[2] = 0x00;
   ba2[3] = 0x64;

   QByteArray ba12 = ba2.toHex();
   int ba3 = ba12.toInt(&ok, 16);
   int ba4 = ba2.toInt(&ok, 16);
   int m00 = 1;
}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    RfmMain w;
    w.show();
    // test();
    return a.exec();
}
